/**
 * @filename:PrdTaskQty Dec 22, 2023
 * Copyright(c) 2022 Wonder Co. Ltd.
 * All right reserved.
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jnr.ffi.annotations.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description:TODO(生产订单员工实体类)
 *
 * @author: Wonder
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_prd_task_qty")
@ApiModel(value="t_prd_task_qty对象", description="生产订单员工表")
public class PrdTaskQty extends Model<PrdTaskQty> {

	private static final long serialVersionUID = 1703231164147606L;

    @TableId(value = "id",type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "主键")
    private Long id;

    @TableField(value = "taskBillNo")
	@ApiModelProperty(name = "taskBillNo" , value = "生产订单号")
    private String taskBillNo;

    @TableField(value = "userId")
	@ApiModelProperty(name = "userid" , value = "员工内码")
    private Integer userid;

    @TableField(value = "userName")
	@ApiModelProperty(name = "userName" , value = "员工姓名")
    private String userName;

    @TableField(value = "workType")
	@ApiModelProperty(name = "workType" , value = "员工工作类型")
    private String workType;

    @TableField(value = "isColdStock")
	@ApiModelProperty(name = "isColdStock" , value = "是否冷库")
    private Boolean isColdStock;

    @TableField(value = "userProportion")
	@ApiModelProperty(name = "userProportion" , value = "计件比例")
    private Double userProportion;

    @TableField(value = "Fwork")
	@ApiModelProperty(name = "Fwork" , value = "员工实际车间")
    private String Fwork;

    @TableField(value = "startDate")
	@ApiModelProperty(name = "startDate" , value = "员工工时开始记录时间")
    private Date startDate;

    @TableField(value = "endDate")
	@ApiModelProperty(name = "endDate" , value = "员工工时结束记录时间")
    private Date endDate;

    @TableField(value = "workTime")
	@ApiModelProperty(name = "workTime" , value = "工时")
    private Long workTime;

    @TableField(value = "materialNo")
	@ApiModelProperty(name = "materialNo" , value = "计件产品编码")
    private String materialNo;

    @TableField(value = "materialName")
	@ApiModelProperty(name = "materialName" , value = "计件产品名称")
    private String materialName;

    @TableField(value = "price")
	@ApiModelProperty(name = "price" , value = "产品计件单价")
    private Double price;

    @TableField(value = "workQty")
	@ApiModelProperty(name = "workQty" , value = "计件数量")
    private Long workQty;

    @TableField(value = "unit")
	@ApiModelProperty(name = "unit" , value = "单位")
    private String unit;


    @TableField(value = "entryId")
    @ApiModelProperty(name = "entryId" , value = "关联任务id")
    private Long entryId;

    @TableField(value = "createTime")
	@ApiModelProperty(name = "createTime" , value = "创建时间")
    private Date createTime;

    @TableField(value = "createUserName")
	@ApiModelProperty(name = "createUserName" , value = "创建人")
    private String createUserName;

    @TableField(value = "createUserId")
	@ApiModelProperty(name = "createUserId" , value = "创建人id")
    private Long createUserId;

    @TableField(value = "updateTime",update = "now()")
	@ApiModelProperty(name = "updateTime" , value = "修改时间")
    private Date updateTime;

    @TableField(value = "updateUserName")
	@ApiModelProperty(name = "updateUserName" , value = "修改人")
    private String updateUserName;

    @TableField(exist = false)
    private Date dayTime;



    //计件分配(计件数量 * 计件单价 * 员工计件比例)
    @TableField(exist = false)
    private Double piece;

	@Override
    public Serializable pkVal() {
        return this.id;
    }

}
